body {
  margin: 0px;
}

.container {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.container > div {
  width: 100vw;
  height: 100vh;
  background-size: cover;
  transition: all 0.5s;
}

.container > div:nth-of-type(1) {
  background-image: url('../../images/batman01.jpg');
}
.container > div:nth-of-type(2) {
  background-image: url('../../images/batman02.jpg');
}
.container > div:nth-of-type(3) {
  background-image: url('../../images/batman03.jpg');
}
.container > div:nth-of-type(4) {
  background-image: url('../../images/batman04.jpg');
}

.a1 > div {
  transform: translateY(0%);
}

.a2 > div {
  transform: translateY(-100%);
}

.a3 > div {
  transform: translateY(-200%);
}

.a4 > div {
  transform: translateY(-300%);
}

/* 导航栏 */
.nav {
  position: fixed;
  right: 1rem;
  top: 40vh;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 0.1rem;
  border-radius: 0.5rem;
}

.nav > div {
  width: 1.5vh;
  height: 1.5vh;
  border: 2px solid #dcdcdc;
  border-radius: 50%;
  margin: 0.5rem;
  cursor: pointer;
  transition: all 0.5s;
}

.nav .active {
  border-color: transparent;
  background-color: #dcdcdc;
}
